﻿using System;
using System.Data;
using Business;

[assembly: CLSCompliant(true)]
namespace Presentation
{
    public partial class Default : System.Web.UI.Page
    {
        private PostBll _postBll;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _postBll = new PostBll();
                DataTable dataTable = _postBll.ViewAllPosts();
                CollectionPager1.PageSize = 5;
                CollectionPager1.DataSource = dataTable.DefaultView;
                CollectionPager1.BindToControl = ViewAllEntry;
                ViewAllEntry.DataSource = CollectionPager1.DataSourcePaged;

            }
        }
    }
}
